// const state = {
//   hotel_id: '' || JSON.parse(sessionStorage.getItem("hotel_id"))
// }
// const getters = {

//   user_id: (state) => state.hotel_id
// }
// const mutations = {

// }
// const actions = {

// }
// export default {
//   getters,
//   state,
//   mutations,
//   actions
// }
export default {
  namespaced: true,

  state: {
    hotel_id: null
  },
  getters: {
    GetHotel_id(state) {
      return state.hotel_id
    }
  },
  actions: {

    saveHotel_id({
      state,
      dispatch
    }, info) {
      return new Promise(async resolve => {
        // store 赋值
        state.hotel_id = info.hotel_id
        // end
        resolve()
      })
    }
  },
  mutations: {

  }
}